

/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

/* 布局样式 */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    background: linear-gradient(135deg, #2c3e50, #4a69bd);
    color: white;
    padding: 20px 0;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.site-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-family: '楷体', serif;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.site-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* 导航样式 */
nav {
    background-color: #4a69bd;
    padding: 15px 0;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    justify-content: center;
}

.nav-item {
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    margin: 0 10px;
    font-size: 1.2rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-item:hover,
.nav-item.active {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* 内容区域样式 */
.main-content {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 30px;
}

.movie-section {
    display: none;
    background: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.movie-section.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.section-title {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #4a69bd;
}

.movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.movie-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    cursor: pointer;
}

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.movie-poster {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-bottom: 1px solid #eee;
}

.movie-info {
    padding: 15px;
}

.movie-title {
    font-size: 1.4rem;
    margin-bottom: 8px;
    color: #2c3e50;
}

.movie-meta {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.movie-description {
    color: #555;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    display: inline-block;
    padding: 8px 15px;
    background-color: #4a69bd;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.read-more:hover {
    background-color: #3c58a8;
}

/* 电影详情模态框 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    overflow-y: auto;
    padding: 20px;
}

.modal-content {
    background-color: white;
    margin: 40px auto;
    padding: 30px;
    border-radius: 8px;
    max-width: 900px;
    position: relative;
    animation: modalFadeIn 0.3s ease;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #777;
    transition: color 0.3s;
}

.close-modal:hover {
    color: #333;
}

.movie-detail-header {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 25px;
    margin-bottom: 25px;
}

.detail-poster {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.detail-title {
    font-size: 2.2rem;
    color: #2c3e50;
    margin-bottom: 10px;
}

.detail-meta {
    margin-bottom: 15px;
    color: #7f8c8d;
}

.detail-rating {
    display: inline-block;
    background-color: #f39c12;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: bold;
    margin-right: 10px;
}

.synopsis {
    margin-bottom: 25px;
    line-height: 1.8;
}

.appreciation-section {
    margin-top: 30px;
}

.appreciation-title {
    font-size: 1.6rem;
    color: #2c3e50;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.appreciation-points {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.appreciation-point {
    margin-bottom: 15px;
}

.point-title {
    font-weight: bold;
    color: #4a69bd;
    margin-bottom: 5px;
}

/* 侧边栏样式 */
.sidebar {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.sidebar-title {
    font-size: 1.4rem;
    color: #2c3e50;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.featured-movie {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.featured-movie:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.featured-title {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.featured-rating {
    color: #f39c12;
    font-weight: bold;
}

/* 页脚样式 */
footer {
    text-align: center;
    padding: 30px 0;
    margin-top: 50px;
    color: #7f8c8d;
    border-top: 1px solid #eee;
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 992px) {
    .main-content {
        grid-template-columns: 1fr;
    }

    .movie-detail-header {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-wrap: wrap;
    }

    .nav-item {
        margin-bottom: 10px;
    }

    .movie-grid {
        grid-template-columns: 1fr;
    }

    .site-title {
        font-size: 2rem;
    }
}



/* category override */
/* 剧情片 — 深蓝沉稳风格 */

body{background:linear-gradient(180deg,#f4f7fb,#eef4fb)}header{background:linear-gradient(135deg,#0b2744,#133a66)}
.section-title{color:#08223f}
.movie-card{border-left:4px solid #1b5f9e}
